﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuanLyKho
{
    public partial class frm_Qltk : Form
    {
        ConnectDB Db = new ConnectDB();
        DataGridViewRow row_dshh = new DataGridViewRow();

        public frm_Qltk()
        {
            InitializeComponent();
        }
        private void LoadDsNhanvien()
    {
        string sql = "SELECT * FROM NhanVien WHERE isDeleted=1";
        DataView dv = new DataView(Db.getDataTable(sql));

        cb_tennv.DataSource = dv;
        cb_tennv.DisplayMember = "tennv";// cái này tên cho mai chon
        cb_tennv.ValueMember = "manv";
    }

        private void frm_Qltk_Load(object sender, EventArgs e)
        {
            LoadDsNhanvien();
        }
    }
}
